import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    headerDate: true,
    rankDate:true,
    footerDate:true
  
  },
  mutations: { //修改state的方法
    headerName(state, payload) {
      state.headerDate = payload;
    },
    rankName(state, payload) {
      state.rankDate = payload;
    },
    footerName(state, payload) {
      state.footerDate = payload;
    }
  },
  actions: {},
  modules: {}
});